﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System;
using QLNet;

namespace FinPlusCompQuant
{
    public class FloatingRateBondTrade : Trade 
    {
        public double Factor { get; private set; }
		public double TradePrice { get; private set; }
        public DateTime SettlementDate { get; private set; }

        //construct
        public FloatingRateBondTrade(Instrument underlying, double factor, DateTime settlementDate, double tradePrice)
        {
            Underlying = underlying;
  		    Factor= factor;
            SettlementDate = settlementDate;
            TradePrice = tradePrice;
        }

        //pubic
        public override object Invoke(Type type, string control, double factor = 1)
        {
            return base.Invoke(type, control, Factor);
        }
    }
}
